import request from "@/utils/request";

//子账号列表
export function getSubAccountList(params) {
  return request({
    url: "/account/subset",
    method: "get",
    params,
  });
}
//新增子账号
export function addSubAccount(data) {
  return request({
    url: `/account/subset`,
    method: "POST",
    data,
  });
}
//修改子账号
export function editSubAccount(data) {
  return request({
    url: `/account/subset/${data.id}`,
    method: "put",
    data,
  });
}
//子账号状态切换
export function stateSubAccount(data) {
  return request({
    url: `/account/subset/batch/switch/state`,
    method: "PATCH",
    data,
  });
}
//新增银行证明
export function addBankProve(data) {
  return request({
    url: `/bankProve`,
    method: "POST",
    data,
  });
}
//修改银行证明
export function editBankProve(data) {
  return request({
    url: `/bankProve/${data.id}`,
    method: "put",
    data,
  });
}
//银行证明详情
export function getBankProveDetail(params) {
  return request({
    url: `/bankProve/${params.id}`,
    method: "get",
  });
}
